﻿using System;

namespace calc_eng
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Calculator");
            Console.WriteLine("Enter the first number");
            double a = double.Parse(Console.ReadLine());

            Console.WriteLine("Enter the second number");
            double b = double.Parse(Console.ReadLine());

            Console.WriteLine("Enter the operator");
            string op = Console.ReadLine();

            double addition = a + b;
            double subtraction = a - b;
            double multiplication = a * b;
            double division = a / b;

            switch (op)
            {
                case "+":
                    Console.WriteLine(addition);
                    break;
                case "-":
                    Console.WriteLine(subtraction);
                    break;
                case "*":
                    Console.WriteLine(multiplication);
                    break;
                case "/":
                    Console.WriteLine(division);
                    break;
            }
            Console.ReadLine();
        }
    }
}
